package com.vertigo.fever;

public class Vector {

	public float x;
	public float y;
	public float z;
	
	public Vector() {
		
	}

	public Vector(Vector v) {
		this(v.x,v.y,v.z);
	}
	
	public Vector(float x, float y, float z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}

	public void add(float x1, float y1, float z1) {
		this.x += x1;
		this.y += y1;
		this.z += z1;
		
	}

	public void add(Vector v) {
		add(v.x, v.y, v.z);
	}
	
	public static Vector add(Vector v1,Vector v2) {
		Vector v = new Vector(v1);
		v.add(v2);
		return v;
	}
}
